<template>
    <div class="footer">
        <div class="item">
            <router-link to="/home" class="nav-item" active-class="nav-color">
            <van-icon name="apps-o" size="30"/>
            首页</router-link>
        </div>
        <div class="item">
            <router-link to="/cart" class="nav-item" active-class="nav-color">
            <van-icon name="shopping-cart-o" size="30"/>
            购物车</router-link>
        </div>
        <div class="item">
            <router-link to="/order" class="nav-item" active-class="nav-color">
            <van-icon name="comment-o" size="30"/>
            订单</router-link>
        </div>
        <div class="item">
            <router-link to="/mine" class="nav-item" active-class="nav-color">
            <van-icon name="user-circle-o" size="30"/>
            我的</router-link>
        </div>
    </div>
</template>

<style lang="less" scoped>
.footer{
    display: flex;
    background: #fff;
    border-top: 0.5px solid #eee;
    padding-top: 1px;
    padding-bottom: 2px;
    .item{
        flex: 1;
        .nav-color{
            color: #ffc400;
        }
        .nav-item{
            display: flex;
            flex-direction: column;
            font-size: 8px;
            align-items: center;
        }
    }
}
</style>